package dreamdancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceMoonRankReward 月亮榜
type DanceMoonRankReward struct {
	Id            int64            `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActId         int64            `json:"actId" gorm:"column:act_id;type:bigint;default:0;not null;comment:活动id"`
	MinLimit      int64            `json:"minLimit" gorm:"column:min_limit;type:bigint;default:0;not null;comment:最小限制"`
	MaxLimit      int64            `json:"maxLimit" gorm:"column:max_limit;type:bigint;default:0;not null;comment:最大限制"`
	RewardList    string           `json:"rewardList" gorm:"column:reward_list;type:text;not null;comment:奖励列表"`
	Remarks       string           `json:"remarks" gorm:"column:remarks;type:varchar(256);not null;default:'';comment:备注"`
	CreateId      int64            `json:"create_id" gorm:"column:create_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	UpdateId      int64            `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"` // 更新人id
	CreatedAt     time.Time        `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt     time.Time        `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt     gorm.DeletedAt   `gorm:"index;type:datetime" json:"-"`
	RewardListTmp []MoonRankReward `gorm:"-" json:"-"`
}
type MoonRankReward struct {
	No   string `json:"no"`   // 道具ID
	Hour int64  `json:"hour"` // 奖励时间
}
